package sicnu.cs.aps.domain.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author chengke
 * @version 1.0
 * @className ActicityPlanForm
 * @description 活动策划信息表
 * @date 2022/5/27 16:22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityPlanForm {

    /**
     * 活动预计开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull
    private Date planStartTime;
    /**
     * 活动预计结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull
    private Date planEndTime;

    /**
     * 策划内容
     */
    @NotEmpty
    private String planContent;
    /**
     * 活动的id
     */
    @NotNull
    private Long activityId;

}